// main.js
import { createApp } from "vue";
import App from "./App.vue";
import "./styles/index.css";
import axios from "axios";
import { SplashScreen } from "@capacitor/splash-screen";

axios.defaults.baseURL = "/api";

const app = createApp(App);
app.mount("#app");

// ✅ 关键：等 DOM 挂载完成再隐藏 Splash
window.addEventListener("DOMContentLoaded", () => {
  SplashScreen.hide();
});
